home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / pcm / surround51.conf < prev    next >
Text File  |  2006-01-09  |  783b  |  55 lines

  1. #
  2. #  Hardware output from 5.1 speakers
  3. #  Samples must be positioned:
  4. #    chn0 - front left
  5. #    chn1 - front right
  6. #    chn2 - rear left
  7. #    chn3 - rear right
  8. #    chn4 - center
  9. #    chn5 - lfe
  10. #
  11.  
  12. pcm.!surround51 {
  13.     @args [ CARD DEV ]
  14.     @args.CARD {
  15.         type string
  16.         default {
  17.             @func getenv
  18.             vars [
  19.                 ALSA_SURROUND51_CARD
  20.                 ALSA_PCM_CARD
  21.                 ALSA_CARD
  22.             ]
  23.             default {
  24.                 @func refer
  25.                 name defaults.pcm.surround51.card
  26.             }
  27.         }
  28.     }
  29.     @args.DEV {
  30.         type integer
  31.         default {
  32.             @func igetenv
  33.             vars [
  34.                 ALSA_SURROUND51_DEVICE
  35.             ]
  36.             default {
  37.                 @func refer
  38.                 name defaults.pcm.surround51.device
  39.             }
  40.         }
  41.     }
  42.     @func refer
  43.     name {
  44.         @func concat
  45.         strings [
  46.             "cards."
  47.             {
  48.                 @func card_driver
  49.                 card $CARD
  50.             }
  51.             ".pcm.surround51." $DEV ":CARD=" $CARD
  52.         ]
  53.     }
  54. }
  55.